
int fac(int n)
{
	int k=1;
	for (int i = 1; i <= n; i++)
		k = k * i;
	return k;
}